package Spring5.第二章.demo2_6_委派模式;

public class Boss {
    public void command(String command, Leader leader) {
        leader.doing(command);
    }

    public static void main(String[] args) {
        // 委派模式的核心就是分发、调度、派遣、
        new Boss().command("登录", new Leader());
    }
}
